package com.shxzz.easy12306.services.order.remote;

import com.shxzz.easy12306.framework.starter.common.dto.user.UserQueryActualRespDTO;
import com.shxzz.easy12306.framework.starter.convention.result.Result;
import jakarta.validation.constraints.NotBlank;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author shxzz
 * @create 2024-03-15-13:51
 */
@FeignClient(value = "easy12306-user-service")
public interface UserRemoteService {
    /**
     * 根据用户名查询用户真实信息
     */
    @GetMapping("/api/user-service/actual/query")
    Result<UserQueryActualRespDTO> queryActualUserByUsername(@RequestParam("username") @NotBlank String username);
}
